package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户好友对象 friend
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
public class Friend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户 id */
    @Excel(name = "用户 id")
    private Long userId;

    /** 好友用户 id */
    @Excel(name = "好友用户 id")
    private Long friendId;

    /** 好友关系状态 (0: 待确认, 1: 已确认, 2: 已删除) */
    @Excel(name = "好友关系状态 (0: 待确认, 1: 已确认, 2: 已删除)")
    private String status;

    /** 逻辑删除（0：存在，2：删除） */
    private String isDeleted;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 好友用户名称 */
    @Excel(name = "好友用户名称")
    private String friendName;

    /** 用户昵称 */
    private String nickName;

    /** 好友昵称 */
    private String friendNickName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setFriendId(Long friendId) 
    {
        this.friendId = friendId;
    }

    public Long getFriendId() 
    {
        return friendId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setIsDeleted(String isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public String getIsDeleted() 
    {
        return isDeleted;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getFriendName() {
        return friendName;
    }

    public void setFriendName(String friendName) {
        this.friendName = friendName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getFriendNickName() {
        return friendNickName;
    }

    public void setFriendNickName(String friendNickName) {
        this.friendNickName = friendNickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("friendId", getFriendId())
            .append("status", getStatus())
            .append("isDeleted", getIsDeleted())
            .append("userName", getUserName())
            .append("friendName", getFriendName())
            .append("nickName", getNickName())
            .append("friendNickName", getFriendNickName())
            .toString();
    }
}
